package com.zero.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zero.entity.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * (Order)表数据库访问层
 *
 * @author makejava
 * @since 2022-04-24 18:02:18
 */
@Mapper
public interface OrderDao extends BaseMapper<Order> {

    /**
     * 创建订单，并返回订单号
     * @param order 新的订单
     * @return 受影响行数
     */
    Integer createOrder(@Param("order") Order order);
}

